package com.hua.api.core.activemq.consumer.event;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

@Service
public class MqEventFactory {

    @Autowired
    private Map<String, ActiveMqEvent> map = new ConcurrentHashMap<>();

    public ActiveMqEvent getMqEventFactory(String key) {
        return map.get(key);
    }


}
